]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
general: Remove periods from single sentences
authorJamie Gravendeel <me@jamie.garden>
Wed, 24 Apr 2024 11:14:47 +0000 (13:14 +0200)
committerJamie Gravendeel <me@jamie.garden>
Wed, 24 Apr 2024 11:58:01 +0000 (13:58 +0200)
This is done to align with the HIG rule about periods in single sentence
strings.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3280>

14 files changed:
js/gdm/loginDialog.js
js/ui/components/networkAgent.js
js/ui/endSessionDialog.js
js/ui/extensionSystem.js
js/ui/inhibitShortcutsDialog.js
js/ui/lookingGlass.js
js/ui/main.js
js/ui/search.js
js/ui/shellEntry.js
js/ui/shellMountOperation.js
js/ui/status/location.js
js/ui/status/thunderbolt.js
js/ui/welcomeDialog.js
src/shell-keyring-prompt.c

index 4f51a6f41ae9e70588e173904e471aca1d4b0803..593f8f582d0b2a6e6cee1912459349e2e79a56d9 100644 (file)
@@ -451,7 +451,7 @@ export const ConflictingSessionDialog = GObject.registerClass({
         banner.clutter_text.line_wrap = true;
 
         let warningBanner = new St.Label({
-            text: _('Force stopping will quit any running apps and processes, and could result in data loss.'),
+            text: _('Force stopping will quit any running apps and processes, and could result in data loss'),
             style_class: 'conflicting-session-dialog-desc-warning',
         });
         warningBanner.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
index f7d57466d771c8c8570c749c5db20e6c5e2043d3..cb4a7c9bd81adf34d1e6880c73ac1df5763f5aee 100644 (file)
@@ -93,7 +93,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
 
         if (flags & NM.SecretAgentGetSecretsFlags.WPS_PBC_ACTIVE) {
             let descriptionLabel = new St.Label({
-                text: _('Alternatively you can connect by pushing the “WPS” button on your router.'),
+                text: _('Alternatively you can connect by pushing the “WPS” button on your router'),
                 style_class: 'message-dialog-description',
             });
             descriptionLabel.clutter_text.line_wrap = true;
@@ -369,7 +369,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
             wirelessSetting = this._connection.get_setting_wireless();
             ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data());
             content.title = _('Authentication required');
-            content.message = _('Passwords or encryption keys are required to access the wireless network “%s”.').format(ssid);
+            content.message = _('Passwords or encryption keys are required to access the wireless network “%s”').format(ssid);
             this._getWirelessSecrets(content.secrets, wirelessSetting);
             break;
         case '802-3-ethernet':
@@ -405,7 +405,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
         case 'cdma':
         case 'bluetooth':
             content.title = _('Authentication required');
-            content.message = _('A password is required to connect to “%s”.').format(connectionSetting.get_id());
+            content.message = _('A password is required to connect to “%s”').format(connectionSetting.get_id());
             this._getMobileSecrets(content.secrets, connectionType);
             break;
         default:
@@ -748,16 +748,16 @@ class NetworkAgent {
             let wirelessSetting = connection.get_setting_wireless();
             let ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data());
             title = _('Authentication required');
-            body = _('Passwords or encryption keys are required to access the wireless network “%s”.').format(ssid);
+            body = _('Passwords or encryption keys are required to access the wireless network “%s”').format(ssid);
             break;
         }
         case '802-3-ethernet':
             title = _('Wired 802.1X authentication');
-            body = _('A password is required to connect to “%s”.').format(connection.get_id());
+            body = _('A password is required to connect to “%s”').format(connection.get_id());
             break;
         case 'pppoe':
             title = _('DSL authentication');
-            body = _('A password is required to connect to “%s”.').format(connection.get_id());
+            body = _('A password is required to connect to “%s”').format(connection.get_id());
             break;
         case 'gsm':
             if (hints.includes('pin')) {
@@ -769,11 +769,11 @@ class NetworkAgent {
         case 'cdma':
         case 'bluetooth':
             title = _('Authentication required');
-            body = _('A password is required to connect to “%s”.').format(connectionSetting.get_id());
+            body = _('A password is required to connect to “%s”').format(connectionSetting.get_id());
             break;
         case 'vpn':
             title = _('VPN password');
-            body = _('A password is required to connect to “%s”.').format(connectionSetting.get_id());
+            body = _('A password is required to connect to “%s”').format(connectionSetting.get_id());
             break;
         default:
             log(`Invalid connection type: ${connectionType}`);
index 302ed1d614048e6acdd1334655464fdbd76ef389..8d4198cfb68bd4bff181552f3c6bcd36e024789c 100644 (file)
@@ -49,14 +49,14 @@ const logoutDialogContent = {
     subject: C_('title', 'Log Out'),
     descriptionWithUser(user, seconds) {
         return ngettext(
-            '%s will be logged out automatically in %d second.',
-            '%s will be logged out automatically in %d seconds.',
+            '%s will be logged out automatically in %d second',
+            '%s will be logged out automatically in %d seconds',
             seconds).format(user, seconds);
     },
     description(seconds) {
         return ngettext(
-            'You will be logged out automatically in %d second.',
-            'You will be logged out automatically in %d seconds.',
+            'You will be logged out automatically in %d second',
+            'You will be logged out automatically in %d seconds',
             seconds).format(seconds);
     },
     showBatteryWarning: false,
@@ -72,8 +72,8 @@ const shutdownDialogContent = {
     subjectWithUpdates: C_('title', 'Install Updates & Power Off'),
     description(seconds) {
         return ngettext(
-            'The system will power off automatically in %d second.',
-            'The system will power off automatically in %d seconds.',
+            'The system will power off automatically in %d second',
+            'The system will power off automatically in %d seconds',
             seconds).format(seconds);
     },
     checkBoxText: C_('checkbox', 'Install pending software updates'),
@@ -91,8 +91,8 @@ const restartDialogContent = {
     subjectWithUpdates: C_('title', 'Install Updates & Restart'),
     description(seconds) {
         return ngettext(
-            'The system will restart automatically in %d second.',
-            'The system will restart automatically in %d seconds.',
+            'The system will restart automatically in %d second',
+            'The system will restart automatically in %d seconds',
             seconds).format(seconds);
     },
     checkBoxText: C_('checkbox', 'Install pending software updates'),
@@ -110,8 +110,8 @@ const restartUpdateDialogContent = {
     subject: C_('title', 'Restart & Install Updates'),
     description(seconds) {
         return ngettext(
-            'The system will automatically restart and install updates in %d second.',
-            'The system will automatically restart and install updates in %d seconds.',
+            'The system will automatically restart and install updates in %d second',
+            'The system will automatically restart and install updates in %d seconds',
             seconds).format(seconds);
     },
     showBatteryWarning: true,
@@ -281,7 +281,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
 
         this._batteryWarning = new St.Label({
             style_class: 'end-session-dialog-battery-warning',
-            text: _('Low battery power: please plug in before installing updates.'),
+            text: _('Low battery power: please plug in before installing updates'),
         });
         this._batteryWarning.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this._batteryWarning.clutter_text.line_wrap = true;
index 8e4af6f15aff905c3b6a1d43ae5b226077b694ba..11fc3a51a63e2ecf900180d1e441bdfe90029751 100644 (file)
@@ -352,7 +352,7 @@ export class ExtensionManager extends Signals.EventEmitter {
             const notification = new MessageTray.Notification({
                 source,
                 title: _('Extension Updates Available'),
-                body: _('Extension updates are ready to be installed.'),
+                body: _('Extension updates are ready to be installed'),
             });
             notification.connect('activated',
                 () => source.open());
index 39b4b283f3f20531b9fed65231dca07551b1be19..8c30ab12cb1a1737bc88eb7ff3a8146834ab6731 100644 (file)
@@ -78,7 +78,7 @@ export const InhibitShortcutsDialog = GObject.registerClass({
         if (restoreAccel) {
             let restoreLabel = new St.Label({
                 /* Translators: %s is a keyboard shortcut like "Super+x" */
-                text: _('You can restore shortcuts by pressing %s.').format(restoreAccel),
+                text: _('You can restore shortcuts by pressing %s').format(restoreAccel),
                 style_class: 'message-dialog-description',
             });
             restoreLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
index c85f3ecbd92c8e449a83a35d648a82ea07b76dc7..e3b0de7a2cb9fd9ef9132d654d63810c06f28b6a 100644 (file)
@@ -782,7 +782,7 @@ const Extensions = GObject.registerClass({
                     errorDisplay.add_child(new St.Label({text: errors[i]}));
             } else {
                 /* Translators: argument is an extension UUID. */
-                let message = _('%s has not emitted any errors.').format(extension.uuid);
+                let message = _('%s has not emitted any errors').format(extension.uuid);
                 errorDisplay.add_child(new St.Label({text: message}));
             }
 
index 9f1697df2b56e5849e94088ec167a4385a8df878..ad0ea962f1a4e14f9b71a33d0cb1bf8d24162acf 100644 (file)
@@ -387,7 +387,7 @@ async function _handleLockScreenWarning() {
 
         notify(
             _('Screen Lock disabled'),
-            _('Screen Locking requires the GNOME display manager.'));
+            _('Screen Locking requires the GNOME display manager'));
     }
 }
 
index 665dae4903653670b6bfe4ada51b98b0421dafd8..197d753296cf323248878fafd02f3d7c33b1f649 100644 (file)
@@ -830,7 +830,7 @@ export const SearchResultsView = GObject.registerClass({
             if (this.searchInProgress)
                 this._statusText.set_text(_('Searching…'));
             else
-                this._statusText.set_text(_('No results.'));
+                this._statusText.set_text(_('No results'));
         }
     }
 
index 3c924f42fb6ea894eddb53922eb9120bca703605..508bf4eda211e5ae3e5ad24af18c998c6ce689f7 100644 (file)
@@ -173,7 +173,7 @@ class CapsLockWarning extends St.Label {
             ...params,
         });
 
-        this.text = _('Caps lock is on.');
+        this.text = _('Caps lock is on');
 
         this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this.clutter_text.line_wrap = true;
index 915c39a7c3f2fdd51f8fc265ecf8b021cdce7440..27f12fbf9c1891602e4aa1a43badb1c8292df050 100644 (file)
@@ -299,11 +299,11 @@ const ShellMountPasswordDialog = GObject.registerClass({
             if (disksApp) {
                 this._keyfilesLabel.clutter_text.set_markup(
                     /* Translators: %s is the Disks application */
-                    _('To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead.')
+                    _('To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead')
                    .format(disksApp.get_name()));
             } else {
                 this._keyfilesLabel.clutter_text.set_markup(
-                    _('You need an external utility like <i>Disks</i> to unlock a volume that uses keyfiles.'));
+                    _('You need an external utility like <i>Disks</i> to unlock a volume that uses keyfiles'));
             }
             this._keyfilesLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
             this._keyfilesLabel.clutter_text.line_wrap = true;
@@ -435,7 +435,7 @@ const ShellMountPasswordDialog = GObject.registerClass({
 
             if (isNaN(pim)) {
                 this._pimEntry.set_text('');
-                this._errorMessageLabel.text = _('The PIM must be a number or empty.');
+                this._errorMessageLabel.text = _('The PIM must be a number or empty');
                 this._errorMessageLabel.opacity = 255;
                 return;
             }
index e0df79e4f5d1b50262e1f1411c455efe961bdd09..1e0c26f6ad3d72c536d78af940700ed637994e23 100644 (file)
@@ -348,7 +348,7 @@ export const GeolocationDialog = GObject.registerClass({
         content.add_child(reasonLabel);
 
         let infoLabel = new St.Label({
-            text: _('Location access can be changed at any time from the privacy settings.'),
+            text: _('Location access can be changed at any time from the privacy settings'),
             style_class: 'message-dialog-description',
         });
         content.add_child(infoLabel);
index 38310413891e706ce44da54a0b75f023f34fbbdb..0a7dffb659a5f33611b7e2b6f324b5576899108c 100644 (file)
@@ -312,7 +312,7 @@ class Indicator extends SystemIndicator {
             this._notify(title, body);
         } else {
             const title = _('Unauthorized Thunderbolt device');
-            const body = _('New device has been detected and needs to be authorized by an administrator.');
+            const body = _('New device has been detected and needs to be authorized by an administrator');
             this._notify(title, body);
         }
     }
index d6f682483e4fcced9488be80bd65e06b2d0935f5..7d0308bfdb23ae5a2b983c7ae96460eb2c5005bf 100644 (file)
@@ -51,7 +51,7 @@ class WelcomeDialog extends ModalDialog.ModalDialog {
 
     _buildLayout() {
         const title = _('Welcome to %s').format(this._getOSName());
-        const description = _('If you want to learn your way around, check out the tour.');
+        const description = _('If you want to learn your way around, check out the tour');
         const content = new Dialog.MessageDialogContent({title, description});
 
         const icon = new St.Widget({style_class: 'welcome-dialog-image'});
index bb03279666806f51c5ad23cce8c6650dd4a4c2ab..d90db3b1c3170bacd2d429518894b250fd094d65 100644 (file)
@@ -761,7 +761,7 @@ shell_keyring_prompt_complete (ShellKeyringPrompt *self)
           /* Do the passwords match? */
           if (!g_str_equal (password, confirm))
             {
-              gcr_prompt_set_warning (GCR_PROMPT (self), _("Passwords do not match."));
+              gcr_prompt_set_warning (GCR_PROMPT (self), _("Passwords do not match"));
               return FALSE;
           }